<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

/**
 * Class HomeController
 * @package App\Http\Controllers
 */
class HomeController extends Controller
{
    /**
     * @param string $name
     * @param array $arguments
     * @return string
     */
    public function __call($name, $arguments)
    {
        return $this->returnJson(404, '404 not found: Method ' . $name . ' is not exist');
    }

    /**
     * @param $act
     * @param Request $request
     */
    function getWay($act, Request $request)
    {
        return $this->$act($request);
    }

    function get()
    {
        dd(111);
    }
}
